package com.clinic.api.casee;

import com.clinic.framework.common.request.CaseQueryRequest;
import com.clinic.framework.common.response.QueryList;
import com.clinic.framework.common.response.ResponseResult;
import com.clinic.framework.common.response.ResponseValue;
import com.clinic.framework.domain.base.Case;
import com.clinic.framework.domain.base.Case;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(value = "病例管理",description = "病例管理接口")
public interface CaseControllerApi {
    @ApiOperation("增加病例")
    @PostMapping("/add")
    public ResponseResult addCase(@RequestBody Case Case);
    @ApiOperation("根据id查询病例")
    @GetMapping("/get/{id}")
    public ResponseValue<Case> findCaseById(@PathVariable("id") String id);
    @ApiOperation("修改病例")
    @PostMapping("/edit")
    public ResponseResult editCase(@RequestBody Case Case);
    @ApiOperation("根据id删除病例")
    @DeleteMapping("/get/{id}")
    public ResponseResult delCase(String id);
    @ApiOperation("病例列表")
    @GetMapping("/list/{page}/{size}")
    public QueryList<Case> findCaseList(@PathVariable("page") String page, @PathVariable("size") String size, CaseQueryRequest dqr);
}
